import request from '@/utils/request'

// 查询ip操作日志列表
export function listIplog(query) {
  return request({
    url: '/system/iplog/list',
    method: 'get',
    params: query
  })
}

// 查询ip操作日志详细
export function getIplog(id) {
  return request({
    url: '/system/iplog/' + id,
    method: 'get'
  })
}

// 新增ip操作日志
export function addIplog(data) {
  return request({
    url: '/system/iplog',
    method: 'post',
    data: data
  })
}

// 修改ip操作日志
export function updateIplog(data) {
  return request({
    url: '/system/iplog',
    method: 'put',
    data: data
  })
}

// 删除ip操作日志
export function delIplog(id) {
  return request({
    url: '/system/iplog/' + id,
    method: 'delete'
  })
}
